import request from '@/utils/request'

// /homePage/ProportionofParty // 党员在会员中占比
// export  const getPartyProportion = ( ) => {
//       return request({
//         url: '/homePage/ProportionofParty',
//         method: 'get',
//       })
// }

// 党员在会员中的占比


export function getPartyProportion() {
  return request({
    url: '/homePage/ProportionOfParty',
    method: 'get',
  })
}



// 查询会员人数和党员人数
export const selectMemberNum = () => {
  return request({
    url: '/homePage/selectMemberNum',
    method: 'get',
})
}

// 查询明星会员
export const selectStarUser = () => {
  return request({
    url: '/homePage/selectStarUser',
    method: 'get',
  })
}

// 会员增长趋势
export const trend = () => {
  return request({
    url: '/homePage/trend',
    method: 'get',
  })
}
// 活动信息
export const managementHistoryList = () => {
  return request({
    url: '/homePage/managementHistoryList',
    method: 'get',
  })
}

export const managementNewList = () => {
  return request({
    url: '/homePage/managementNewList',
    method: 'get',
  })
 }

//  商会信息
export const commerencemessage = () => {
  return request({
    url: '/homePage/message',
    method: 'get',
  })
 }

//  查询商会企业
export const selectCompany = ({pageNum,pageSize}) => {
  return request({
    url: `/system/company/list?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'get',
  })
}

// 查看财务信息
export const getselectMoneyNum = () => {
  return request({
    url: '/homePage/selectMoneyNum',
    method: 'get',
  })
}

// 供需信息
 export const selectCountMessage = () => {
   return request({
     url: '/homePage/selectCountMessage',
     method: 'get',
   })
 }
 export const demand = ({pageNum,pageSize}) => {
   return request({
     url: `/system/demand/list?pageNum=${pageNum}&pageSize=${pageSize}`,
     method: 'get',
   })
 }

// 获取商会荣誉 http://localhost/dev-api/system/honors/list?pageNum=1&pageSize=10
export const getHonorsList = ({pageNum,pageSize}) => {
  return request({
    url: `/system/honors/list?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'get',
  })
}

